#ifndef __KEY_H__
#define __KEY_H__

#include "multi_button.h"
#include <rtthread.h>
#include <stdint.h>
#include "main.h"

#define	GPIO_BUTTON_A_CLK_ENABLE			__HAL_RCC_GPIOA_CLK_ENABLE
#define GPIO_BUTTON_A_CLK    RCC_APB2Periph_GPIOA
#define GPIO_BUTTON_A_PORT   GPIOA
#define GPIO_BUTTON_A_PIN    GPIO_PIN_5

#define	GPIO_BUTTON_B_CLK_ENABLE			__HAL_RCC_GPIOA_CLK_ENABLE
#define GPIO_BUTTON_B_CLK    RCC_APB2Periph_GPIOA
#define GPIO_BUTTON_B_PORT   GPIOA
#define GPIO_BUTTON_B_PIN    GPIO_PIN_6




int btn_init(void);
void long_press_count_init(void);
#endif

